package com.wteam.dragon.system.basebean.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * 返回信息
 * @Author 陈晓辉
 * @Date 2020/4/2 9:50
 */
@Data
public class ResultMessage implements Serializable {
    /**
     * 状态码
     */
    private Integer status;
    /**
     * 返回信息
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String message;
    /**
     * 结果对象
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Map<String, Object> resultParam;

    public ResultMessage() {
    }

    public ResultMessage(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public ResultMessage(Integer status, String message, Map<String, Object> resultParam) {
        this.status = status;
        this.message = message;
        this.resultParam = resultParam;
    }
}
